import request from '@/plugin/axios'
const BASE_URL = "/sys/rule"
export function ruleList() {
  return request({
    url: BASE_URL + "/list",
    method: 'post',
  })
}
export function ruleAdd(data) {
  return request({
    url: BASE_URL + "/add",
    method: 'post',data
  })
}
export function ruleUpdate(data) {
  return request({
    url: BASE_URL + "/update",
    method: 'post',data
  })
}
export function getPage(data) {
  return request({
    url: BASE_URL + "/page",
    method: 'post',data
  })
}
export function ruleDelete(id) {
  return request({
    url: BASE_URL + "/delete",
    method: 'post',data:{id}
  })
}